<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
</head>
<body>
<textarea  style="width:100%;height:100%">
<${'#'}include "/layout/easyuilayout.ftl"/>
<${'@'}htmlHead>

</${'@'}htmlHead>
<${'@'}htmlBody>

<div id="${ControllerName}_Toolbar">    
   <input id="${ControllerName}_ss" class="easyui-searchbox" style="width:280px;"  data-options="searcher:${ControllerName}Searchbox,prompt:'请输入关键字...',menu:'#${ControllerName}_mm'"></input>           
    <div id="${ControllerName}_mm" style="width:120px">
            <#list  collist as  colum>
                <#if colum.COLUMN_COMMENT?length gt 0>
                   <div data-options="name:'${colum.COLUMN_NAME}'">${colum.COLUMN_COMMENT}</div>
                <#else>
                    <div data-options="name:'${colum.COLUMN_NAME}'">${colum.COLUMN_NAME}</div>
                </#if>
            </#list>
    </div>
     <a href="javascript:void(0)" class="easyui-linkbutton " iconCls="icon-reload" plain="true" onclick="ReloadList_${ControllerName}()">刷新</a>

    <a href="javascript:void(0)" class="easyui-linkbutton float_r" iconCls="icon-remove" plain="true" onclick="Del_${ControllerName}()">删除</a>
    <span class="datagrid-btn-separator float_r"  ></span>
    <a href="javascript:void(0)" class="easyui-linkbutton float_r" iconCls="icon-edit" plain="true" onclick="ShowEditForm_${ControllerName}(1)">修改</a>
    <span class="datagrid-btn-separator float_r"  ></span>
    <a href="javascript:void(0)" class="easyui-linkbutton float_r" iconCls="icon-add" plain="true" onclick="ShowEditForm_${ControllerName}(0)">新增</a>
</div>
<div data-options="region:'center',title:'',split:true,border:false" >
    <table id="${ControllerName}_Grid"> </table> 
</div>
<div id="${ControllerName}_EditForm" class="easyui-dialog" style="width:700px;height:400px;padding:0px"  closed="true"  modal="true"    buttons="#${ControllerName}_EditForm_buttons" >
    <form  id="${ControllerName}_EditForm_fm"  method="post"  >
      <#list  collist as  colum>
          <div class="fitem"  >
              <#if colum.COLUMN_COMMENT?length gt 0>
                <label>${colum.COLUMN_COMMENT}: </label>
              <#else>
                <label>${colum.COLUMN_NAME}: </label>
              </#if>
              <#if colum.COLUMN_TYPE?upper_case?index_of('TINYINT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:0,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('SMALLINT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:0,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('MEDIUMINT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:0,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('BIGINT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..."value="0" data-options="precision:0,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('INT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:0,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('FLOAT') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:2,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('DOUBLE') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:6,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('DECIMAL') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-numberbox" placeholder="请输入..." value="0" data-options="precision:6,required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('DATETIME') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-datetimebox" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('DATE') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-datebox" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('TIME') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-timespinner" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('YEAR') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-spinner" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('TIMESTAMP') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-datetimebox" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('TIMESTAMP') gte 0>
                <input name="${colum.COLUMN_NAME}" class="easyui-datetimebox" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              <#elseif  colum.COLUMN_TYPE?upper_case?index_of('CHAR(1)') gte 0>
                <input type="radio" name="${colum.COLUMN_NAME}" value="1" checked="checked" /><span>是</span>
                <input type="radio" name="${colum.COLUMN_NAME}" value="0"  /><span>否</span>
              <#else >
                <input name="${colum.COLUMN_NAME}" class="easyui-validatebox" placeholder="请输入..." value="" data-options="required:${(colum.IS_NULLABLE?upper_case == 'NO')?string('true','false')}"     />
              </#if>
          </div>
      </#list>

    </form>
</div>
<div id="${ControllerName}_EditForm_buttons">
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="save_${ControllerName}()">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#${ControllerName}_EditForm').dialog('close')">取消</a>
</div>
</${'@'}htmlBody>

 

</textarea>
</body>
</html>
 
 